package com.lmc.pojo;

import java.sql.Timestamp;

/**
 * BteacherId entity. @author MyEclipse Persistence Tools
 */

public class BteacherId implements java.io.Serializable {

	// Fields

	private String btname;
	private String btpwd;
	private String btagree;
	private Timestamp btime;

	// Constructors

	/** default constructor */
	public BteacherId() {
	}

	/** full constructor */
	public BteacherId(String btname, String btpwd, String btagree,
			Timestamp btime) {
		this.btname = btname;
		this.btpwd = btpwd;
		this.btagree = btagree;
		this.btime = btime;
	}

	// Property accessors

	public String getBtname() {
		return this.btname;
	}

	public void setBtname(String btname) {
		this.btname = btname;
	}

	public String getBtpwd() {
		return this.btpwd;
	}

	public void setBtpwd(String btpwd) {
		this.btpwd = btpwd;
	}

	public String getBtagree() {
		return this.btagree;
	}

	public void setBtagree(String btagree) {
		this.btagree = btagree;
	}

	public Timestamp getBtime() {
		return this.btime;
	}

	public void setBtime(Timestamp btime) {
		this.btime = btime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof BteacherId))
			return false;
		BteacherId castOther = (BteacherId) other;

		return ((this.getBtname() == castOther.getBtname()) || (this
				.getBtname() != null && castOther.getBtname() != null && this
				.getBtname().equals(castOther.getBtname())))
				&& ((this.getBtpwd() == castOther.getBtpwd()) || (this
						.getBtpwd() != null && castOther.getBtpwd() != null && this
						.getBtpwd().equals(castOther.getBtpwd())))
				&& ((this.getBtagree() == castOther.getBtagree()) || (this
						.getBtagree() != null && castOther.getBtagree() != null && this
						.getBtagree().equals(castOther.getBtagree())))
				&& ((this.getBtime() == castOther.getBtime()) || (this
						.getBtime() != null && castOther.getBtime() != null && this
						.getBtime().equals(castOther.getBtime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBtname() == null ? 0 : this.getBtname().hashCode());
		result = 37 * result
				+ (getBtpwd() == null ? 0 : this.getBtpwd().hashCode());
		result = 37 * result
				+ (getBtagree() == null ? 0 : this.getBtagree().hashCode());
		result = 37 * result
				+ (getBtime() == null ? 0 : this.getBtime().hashCode());
		return result;
	}

}